﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace xxl_job {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "xxl_job_group", DisableSyncStructure = true)]
	public partial class XxlJobGroup {

		[JsonProperty, Column(Name = "id", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 执行器地址列表，多地址逗号分隔
		/// </summary>
		[JsonProperty, Column(Name = "address_list", StringLength = 512)]
		public string AddressList { get; set; }

		/// <summary>
		/// 执行器地址类型：0=自动注册、1=手动录入
		/// </summary>
		[JsonProperty, Column(Name = "address_type", DbType = "tinyint(4)")]
		public sbyte AddressType { get; set; } = 0;

		/// <summary>
		/// 执行器AppName
		/// </summary>
		[JsonProperty, Column(Name = "app_name", StringLength = 64, IsNullable = false)]
		public string AppName { get; set; }

		/// <summary>
		/// 执行器名称
		/// </summary>
		[JsonProperty, Column(Name = "title", StringLength = 12, IsNullable = false)]
		public string Title { get; set; }

	}

}
